<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>监视属性_weather</title>
		<script src="./js/vue.js"></script>
	</head>
	<body>
		<div id="root">
			<h2>今天天气很{{info}}</h2>
			<button @click="isHot = !isHot">切换天气</button>
		</div>
		<script>
			Vue.config.productionTip = false;
			const vm = new Vue({
				el:'#root',
				data:{
					isHot:true,
					x:1
				},
				computed:{
					info(){
						return this.isHot ? '炎热' : '凉爽';
					}
				},
				methods:{
				}
			});
		</script>
	</body>
</html>